package cn.janescott.inner.space.lib.support.pagination;

/**
 * 排序对象
 * @author scott
 * Created by Scott on 2018/5/15
 */
public class OrderDTO implements java.io.Serializable {
    /**
     * 属性名
     */
    private String name;

    /**
     * 是否倒序
     */
    private Boolean desc;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getDesc() {
        return desc;
    }

    public void setDesc(Boolean desc) {
        this.desc = desc;
    }

    public boolean isDesc() {
        if (null == desc) {
            throw new NullPointerException();
        }
        return getDesc();
    }
}
